<table width="100%" class="tab_label" id="general_config">
    <col class="th" />
    <col/>
    <tbody>

   
    <tr>
        <th><?php echo $row['company']['info'];?></th>
        <td><input type="text" name="Form[company]" value="<?php echo $row['company']['value'];?>" class="input rounded w_4" /></td>
    </tr>

    <tr>
        <th><?php echo $row['company_address']['info'];?></th>
        <td><input type="text" name="Form[company_address]" value="<?php echo $row['company_address']['value'];?>" class="input rounded w_4" /></td>
    </tr>
    

    <tr>
        <th><?php echo $row['site_service_phone']['info'];?></th>
        <td><input type="text" name="Form[site_service_phone]" value="<?php echo $row['site_service_phone']['value'];?>" class="input rounded w_4"/></td>
    </tr>
    <tr>
        <th><?php echo $row['site_service_time']['info'];?></th>
        <td><input type="text" name="Form[site_service_time]" value="<?php echo $row['site_service_time']['value'];?>" class="input rounded w_4" /></td>
    </tr>

    <tr>
        <th><?php echo $row['notify_num']['info'];?></th>
        <td><input type="text" name="Form[notify_num]" value="<?php echo $row['notify_num']['value'];?>" class="input rounded w_4" />
            <span>多个号码使用半角逗号","隔开，<font color="red">号码用于接收短信通知，请填写正确的手机号码</font></span>
        </td>
    </tr>

    <tr>
        <th><?php echo $row['site_record_num']['info'];?></th>
        <td><input type="text" name="Form[site_record_num]" value="<?php echo $row['site_record_num']['value'];?>" class="input rounded w_4"/>
        </td>
    </tr>

    <tr class="js-switch-price">
        <th>销售模式</th>
        <td>
            <label><input type="radio" name="Form[sell_model]" value="0" <?php if(!$row['sell_model']['value']):?>checked<?php endif;?> class="input rounded w_4"/> 一口价模式</label>
            &nbsp; &nbsp;
           <label><input type="radio" name="Form[sell_model]" value="1"  <?php if($row['sell_model']['value']):?>checked<?php endif;?> class="input rounded w_4"/>  独立房间价格模式</label>
            &nbsp; &nbsp;
            <label><input type="radio" name="Form[sell_model]" value="2"  <?php if($row['sell_model']['value'] == 2):?>checked<?php endif;?> class="input rounded w_4"/>  一口价周期价格模式</label>
        </td>
    </tr>
    
    <tr class="js-single-price">
        <th>一口价/微信预定单价</th>
        <td><input type="text" name="Form[book_unit_price]" value="<?php echo $row['book_unit_price']['value'];?>" class="input rounded w_4"/>(元/人)
        </td>
    </tr>

    <tr class="js-mix-price">
        <th>周期价格</th>
        <td>
            <label> 周一价格 &nbsp;
            <input type="text" name="Form[mon_unit_price]" value="<?php echo $row['mon_unit_price']['value'] ? $row['mon_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/></label>
            &nbsp;
            周二价格 &nbsp;
            <input type="text" name="Form[tue_unit_price]" value="<?php echo $row['tue_unit_price']['value'] ? $row['tue_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/>
            &nbsp;
            周三价格 &nbsp;
            <input type="text" name="Form[wed_unit_price]" value="<?php echo $row['wed_unit_price']['value'] ? $row['wed_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/>
            &nbsp;
            周四价格 &nbsp;
            <input type="text" name="Form[thu_unit_price]" value="<?php echo $row['thu_unit_price']['value'] ? $row['thu_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/>
            &nbsp;
        </td>
    </tr>


    <tr class="js-mix-price">
        <th></th>
        <td>
            <label>
                周五价格 &nbsp;
                <input type="text" name="Form[fri_unit_price]" value="<?php echo $row['fri_unit_price']['value'] ? $row['fri_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/></label>
            &nbsp;
            周六价格 &nbsp;
            <input type="text" name="Form[sat_unit_price]" value="<?php echo $row['sat_unit_price']['value'] ? $row['sat_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/>
            &nbsp;
            周日价格 &nbsp;
            <input type="text" name="Form[week_unit_price]" value="<?php echo $row['week_unit_price']['value'] ? $row['week_unit_price']['value'] : $row['book_unit_price']['value'];?>" class="input rounded w_05"/>
            &nbsp;

        </td>
    </tr>


   
    <tr>
        <th>预定须知</th>
        <td><input type="text" name="Form[book_notice]" value="<?php echo $row['book_notice']['value'];?>" class="input rounded w_4"/>
        </td>
    </tr>
    <tr>
        <th>关于我们网址</th>
        <td><input type="text" name="Form[aboutus_url]" value="<?php echo $row['aboutus_url']['value'];?>" class="input rounded w_4"/>
        </td>
    </tr>
    <tr>
        <th>联系我们网址</th>
        <td><input type="text" name="Form[contactus_url]" value="<?php echo $row['contactus_url']['value'];?>" class="input rounded w_4"/>
        </td>
    </tr>
    <tr>
        <th>地图导航网址</th>
        <td><input type="text" name="Form[map_url]" value="<?php echo $row['map_url']['value'];?>" class="input rounded w_4"/>
        </td>
    </tr>
    <tr>
        <th>公众号关注欢迎提示语</th>
        <td><textarea  name="Form[wx_follow_welcome_info]" style="width: 600px;" ><?php echo $row['wx_follow_welcome_info']['value'];?></textarea>
        </td>
    </tr>


    </tbody>
</table>

<script>

    $(function () {
        $('.js-mix-price').hide();
        <?php if($row['sell_model']['value'] == 2):?>
                $('.js-mix-price').show();
        <?php endif;?>

//        $('.js-single-price').hide();

        <?php if($row['sell_model']['value'] == 0):?>
        $('.js-single-price').show();
        <?php endif;?>

        $('.js-switch-price').find('input').click(function () {

            if ($(this).val() == 2) {
                $('.js-mix-price').show();
            } else {
                $('.js-mix-price').hide();
            }

            if ($(this).val() == 0) {
                $('.js-single-price').show();
            } else {
//                $('.js-single-price').hide();
            }

        })
    })
</script>